//
//  BaseModel.m
//  INAlienLand
//
//  Created by dllo on 15/6/29.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

-(instancetype)initWith:(NSDictionary *)dic
{
    self= [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
            }
    return self;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.bId = value;
    }
    if ([key isEqualToString:@"description"]) {
        self.des = value;
    }
}

@end
